package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.BusinessTrips;

/**
 * 出差申请Service接口
 * 
 * @author ruoyi
 * @date 2025-03-21
 */
public interface IBusinessTripsService 
{
    /**
     * 查询出差申请
     * 
     * @param id 出差申请主键
     * @return 出差申请
     */
    public BusinessTrips selectBusinessTripsById(Long id);

    /**
     * 查询出差申请列表
     * 
     * @param businessTrips 出差申请
     * @return 出差申请集合
     */
    public List<BusinessTrips> selectBusinessTripsList(BusinessTrips businessTrips);

    /**
     * 新增出差申请
     * 
     * @param businessTrips 出差申请
     * @return 结果
     */
    public int insertBusinessTrips(BusinessTrips businessTrips);

    /**
     * 修改出差申请
     * 
     * @param businessTrips 出差申请
     * @return 结果
     */
    public int updateBusinessTrips(BusinessTrips businessTrips);

    /**
     * 批量删除出差申请
     * 
     * @param ids 需要删除的出差申请主键集合
     * @return 结果
     */
    public int deleteBusinessTripsByIds(Long[] ids);

    /**
     * 删除出差申请信息
     * 
     * @param id 出差申请主键
     * @return 结果
     */
    public int deleteBusinessTripsById(Long id);

    /*
    * 审批出差申请
    * */
    public int approveBusinessTrips(BusinessTrips businessTrips);

    /*
    * 查询审批结果
    * */
    public BusinessTrips selectBusinessApplyResultById(Long id);

    /*
     * 根据用户id查询当前用户的出差申请记录
     * */

    public List<BusinessTrips> selectCurrentUserBusinessTripsById(Long id);


    public List<BusinessTrips> selectDetailedBusinessTripsByIdAndInput(Long id, String status, String destination);



}
